package com.itcast.monkey.web.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;

import com.itcast.monkey.domain.base.TakeTime;
import com.itcast.monkey.service.base.TakeTimeService;
import com.itcast.monkey.web.action.common.BaseAction;
import com.opensymphony.xwork2.ActionContext;

public class TaeTimeAction extends BaseAction<TakeTime> {
	
	@Autowired
	private TakeTimeService takeTimeService;
	
	@Action(value="taketime_findnoassociation",results={@Result(name="success",type="json")})
	public String findnoassociation(){
		List<TakeTime> list =takeTimeService.findnoassociation();
		ActionContext.getContext().getValueStack().push(list);
		return SUCCESS;
	}
}
